package com.ssy.lingxi.member.merchant.model.vo.basic.response;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 省市区域查询返回VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-08-26
 */
public class CountryAreaVO implements Serializable {
    private static final long serialVersionUID = -8215743502506586828L;

    public CountryAreaVO(String code, String name, List<CountryAreaVO> children) {
        this.code = code;
        this.name = name;
        this.children = children == null ? new ArrayList<>() : children;
    }

    /**
     * 区域编码
     */
    private String code;

    /**
     * 区域名称
     */
    private String name;

    /**
     * 下级区域
     */
    private List<CountryAreaVO> children;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CountryAreaVO> getChildren() {
        return children;
    }

    public void setChildren(List<CountryAreaVO> children) {
        this.children = children;
    }
}
